<div class="title"><?php echo h($modelUser->username, 20); ?></div>
<div class="text-box">
    <div class="left-info-box">
	<img src="<?php echo $modelUser->getAvatarUrl('large') ?>"/>
    </div>
</div>
<div class="right-info-box">
    <table class="table">
	<tr>
	    <td>Name:</td>
	    <td><?php echo h($modelUser->display_name); ?></td>
	</tr>
	<tr class="warning">
	    <td> Member Since:</td>
	    <td><?php echo date('M d, Y', $modelUser->joined); ?></td>
	</tr>		
	<?php
	if (user()->id && user()->id != $modelUser->user_id && user()->getModel()->status == User::STATUS_ACTIVE) {
	    $imgAdd = user()->getModel()->checkFriend(user()->id, $modelUser->user_id);
	    //check wheather user has sent request or was friend 
	    if ($imgAdd) {
		?>
		<tr>
		    <td>Add Friend:</td>
		    <td><?php echo $imgAdd ?></td>
		</tr>

		<?php
	    }
	    ?>
    	<tr>
    	    <td>Message:</td>
    	    <td><a class="show-form-post" href="#form-send-request"><i style="margin-top: 3px;" class="icon-envelope"></i> Send</a></td>
    	</tr>
	    <?php
	}
	?>
    </table>
</div>
